package com.codeyang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class SecurityJwtApplication {

    /**
     * 测试登录 http://localhost:8080/doLogin?username=admin&password=123
     * 测试权限
     * http://localhost:8080/add
     * header中必须有
     * Authorization bearer<jwt字符串>
     *
     *
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(SecurityJwtApplication.class, args);
    }

}
